<?php
namespace app\api\controller\com;
class Attachment extends Base {
	//上传图片
	public function upimg() {
		$rs = m('Attachment', 'xcom')->upimg();
		if ($rs) {
			suc(['url' => $rs]);
		} else {
			err(m('Attachment', 'xcom')->getError());
		}
	}
}
